# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgbase=python-efilter
pkgname=('python2-efilter' 'python-efilter')
pkgver=1.5
pkgrel=11
pkgdesc='A general-purpose destructuring and search language implemented in Python.'
arch=('any')
url='https://github.com/google/dotty'
license=('GPL')
makedepends=('python2-setuptools' 'python-setuptools')
source=("https://github.com/google/dotty/archive/v$pkgver.tar.gz")
sha512sums=('edf45bd8d8ec87860fa8581b8f6bbfeb6ce505f434c5f60e3da59b8b5e274c64eeee6cd064128188969b18bf47265b8e72f7f029bcae8fdc7293b0c668a0d3d4')

package_python2-efilter() {
  depends=('python2')

  cd "dotty-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

package_python-efilter() {
  depends=('python')

  cd "dotty-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

